﻿using LPLS.DBEntities.LongGIModule;
using System;
using System.Collections.Generic;

namespace LongGi.TingkatKebocoranModule.CommModel
{
    public static class LongGiEventCommon
    {

        /// <summary>
        /// excel数据 事件
        /// </summary>
        public static event Action<List<ExcelFileHeaderModel>> DataEvent;




        public static void PubshExcelDataHander(List<ExcelFileHeaderModel> data)
        {
            DataEvent?.Invoke(data);



        }





        public static event Action<string> MessageEvent;

        public static void PubshMessageEventHander(string str)
        {


            MessageEvent?.Invoke(str);

        }





        public static event Action ExportExcelDataEvent;

       
        public static void PublishExportExcelDataHander() {


            ExportExcelDataEvent?.Invoke();


        }









        /// <summary>
        ///卡浆数据 事件
        /// </summary>
        public static event Action<List<KaJiangData>> KajiangDataEvent;

        /// <summary>
        /// 发布卡浆数据
        /// </summary>
        /// <param name="data"></param>
        public static void PubshKajiangDataHander(List<KaJiangData> data)
        {
            KajiangDataEvent?.Invoke(data);

        }
        /// <summary>
        /// 漏率数据 事件
        /// </summary>

        public static event Action<List<LoulvData>> LouLvDataEvent;

        public static void PubshLoulvDataHander(List<LoulvData> data)
        {
            LouLvDataEvent?.Invoke(data);
        }





      
    }
}
